<template src="./index.html"></template>
<style src="./index.scss" lang="scss" scoped></style>

<script>
export default {
    components: {
        LayoutDemo: ()=> import("@/components/LayoutDemo")
    },
    data() {
        return {
            data: [],
        }
    },
    created() {
        this.getData()
    },
    methods: {
        async getData() {
            const res = await this.$http.get({
                headers: {
                    iToken: JSON.parse(sessionStorage.getItem("store")).token,
                },
                url: "/main",
            });
            this.data = res.data.data;
            // console.log(res.data.data);
        }
    }
}
</script>

